package com.aiyige.base.eventbus;

public class EventServerChangeMomentStatus {
    String momentId;
    String subject;
    String message;
    int targetStatus;

    public EventServerChangeMomentStatus() {
    }

    private EventServerChangeMomentStatus(Builder builder) {
        setMomentId(builder.momentId);
        setSubject(builder.subject);
        setMessage(builder.message);
        setTargetStatus(builder.targetStatus);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getMomentId() {
        return momentId;
    }

    public void setMomentId(String momentId) {
        this.momentId = momentId;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getTargetStatus() {
        return targetStatus;
    }

    public void setTargetStatus(int targetStatus) {
        this.targetStatus = targetStatus;
    }

    public static final class Builder {
        private String momentId;
        private String subject;
        private String message;
        private int targetStatus;

        private Builder() {
            message = "";
            momentId = "";
            subject = "";
        }

        public Builder momentId(String val) {
            momentId = val;
            return this;
        }

        public Builder subject(String val) {
            subject = val;
            return this;
        }

        public Builder message(String val) {
            message = val;
            return this;
        }

        public Builder targetStatus(int val) {
            targetStatus = val;
            return this;
        }

        public EventServerChangeMomentStatus build() {
            return new EventServerChangeMomentStatus(this);
        }
    }
}
